package cn.lili.modules.payment.entity.dos;

import cn.lili.mybatis.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("li_payment_site_commission")
@Builder
@ApiModel(value = "城市站点审核分佣")
@NoArgsConstructor
@AllArgsConstructor
public class PaymentUrbanSubstationCommission extends BaseEntity {

    @ApiModelProperty(value = "城市站点ID")
    private String urbanId;

    @ApiModelProperty(value = "供应商ID")
    private String supplierId;

    @ApiModelProperty(value = "分佣金额")
    private Double price;

    @ApiModelProperty(value = "分佣状态：1分佣成功、0分佣失败")
    private Integer status;

    /**
     * @see cn.lili.modules.payment.entity.enums.PaymentClientEnum
     */
    @ApiModelProperty(value = "来源")
    private String paymentClient;

    /**
     * @see cn.lili.modules.payment.entity.enums.PaymentMethodEnum
     */
    @ApiModelProperty(value = "支付方式")
    private String paymentMethod;

    @CreatedDate
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
